package com.chenxingnet.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;

import com.chenxingnet.dto.Waybills;
import com.chenxingnet.dto.vo.WaybillVo;

public interface WaybillsService {
	List<Map> findByProperty(Map params);
	Long countByProperty(Map params);
	/**
	 * 新增运单信息
	 * @param waybills
	 */
	int addWaybill(Waybills waybills);
	/**
	 * 修改运单信息
	 * @param waybills
	 */
	void updateWaybill(Waybills waybills);
	/**
	 * 根据id删除信息
	 * @param wid
	 */
	void deleteWaybill(Integer wid);
	/**
	 * 根据id查询运单
	 * @param wid
	 * @return
	 */
	Waybills selectById(Integer wid);
	/**
	 * 根据部门id查询数据
	 * @param deptid
	 * @return
	 */
	List<WaybillVo> selectByDeptid(Integer deptid,HttpServletRequest request, Model model);
	/**
	 * 移动端根据部门id查询数据
	 * @param deptid
	 * @return
	 */
	List<WaybillVo> mobSelectByDeptid(Integer deptid,HttpServletRequest request, Model model);
	/**
	 * 查询所有运单信息
	 * @return
	 */
	List<WaybillVo> selectAll();
	List<String> selectAllByChexing();
	/**
	 * 分页查询
	 */
	List<WaybillVo> selectAllCount(HttpServletRequest request, Model model);
	/*int setWayBillImgAndMarkUser(int parseInt, String filename,int   userid);*/
	int setWayBillImgAndMarkUser(int parseInt, String filename);
	int updateSetSongda(String wayidSingle);
	List<WaybillVo> selectWayidSingle(int parseInt);
	/**
	 * 事故页面修改送达状态
	 * @param wayidSingle
	 * @return
	 */
	int updateByShiSongda(String wayidSingle);
	
	  int insertSelective(Waybills record);
	  
	//查询未送达数量
		int getCountByWS(Integer deptid);
		//查询已送达数量
		int getCountByS(Integer deptid);
		//查询超时数量
		int getCountByCHS(Integer deptid);
		//查询事故数量
		int getCountbYSG(Integer deptid);
		int updateChangshangjiesuanshi(int parseInt);
		
		int addAppWaybill(Waybills waybills);
	  
		Waybills showRemBywId(Integer wid);
	

}
